home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
C
/
Comet2.1.3.cpt
/
include
/
custom.h
< prev
next >
Wrap
Text File
|
1988-04-15
|
3KB
|
80 lines
/* Copyright 1983 by the Massachusetts Institute of Technology */
/*
Copyright Cornell University 1986. All rights are reserved.
As of 4/10/86:
This source file may have no changes from the M.I.T original
other than this notice; but it has been tested as part of
Cornell's Aztec-C port. See notice.h
*/
/* 5/13/87 kevin removed LNMS structure to use 1 Handle to save host name/address pairs */
/* 12/7/87 kevin added net_mask to info stored in custrsrc */
/* 4/15/88 kevin added telhighwin var */
/* Custom Structure Version 11 */
#include <types.h>
#define CVERSION 12 /* current version number */
#define MAXLDEF 20 /* maximum number of local host names */
#define MAXNLEN 20 /* maximum length of a host name */
/* the custom resource structure */
struct custrsrc
{
unsigned cr_iver; /* internal version number */
unsigned cr_buf_cnt; /* # of buffers to allocate */
unsigned cr_buf_siz; /* size of each buffer */
unsigned cr_ip_siz; /* Max IP packet size */
unsigned cr_tcp_siz; /* Max TCP packet size */
unsigned cr_1custom; /* various flags */
long cr_me; /* skeletal my-internet-address */
unsigned cr_telwin; /* telnet window size */
unsigned cr_tellowwin; /* telnet low window size */
unsigned cr_tmoffset; /* time zone offset in minutes */
long cr_net_mask; /* net mask */
unsigned cr_telhighwin; /* telnet high window size */
};
extern Handle hcr_tmlabel; /* string for the time name */
extern Handle hcr_defgw; /* default gateway */
/* The custom structure itself. */
struct custom
{
unsigned c_iver; /* internal version number */
unsigned c_buf_cnt; /* # of buffers to allocate */
unsigned c_buf_siz; /* size of each buffer */
unsigned c_ip_siz; /* Max IP packet size */
unsigned c_tcp_siz; /* Max TCP packet size */
unsigned c_1custom; /* various flags */
long c_me; /* skeletal my-internet-address */
unsigned c_telwin; /* telnet window size */
unsigned c_tellowwin; /* telnet low window size */
int c_tmoffset; /* time zone offset in minutes */
char * c_tmlabel; /* time zone label */
char c_password[MAXNLEN];/* user's pasword */
long c_defgw; /* default gatway */
long c_net_mask; /* net ans subnet address mask */
unsigned c_telhighwin; /* telnet high window size */
};
extern Handle hhosttab; /* pointer to CR-separated list of host names/addresses */
#define HOSTID 1
/* TELNET custom bits in c_1custom */
#define BSDEL 0x01 /* BS/DEL key setting UNUSED kevin */
#define WRAP 0x02 /* wrap-around */
#define NLSET 0x04 /* newline mode default kevin */
#define FINGER_ON 0x08 /* finger server default */
#define SUPDUP_WRAP 0x10 /* supdup wrap default UNUSED kevin */
#define TN_TFTP_ASK 0x20 /* telnet tftp server asking default UNUSED kevin */
extern struct custom custom;